home *** CD-ROM | disk | FTP | other *** search
/ Video Toaster 4.2 / Video Toaster v4.2.iso / programs / documentation / lightwave / sdk / include / lwbase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-03  |  1.5 KB  |  52 lines

  1. /*
  2.  * LWSDK Header File
  3.  * Copyright 1995  NewTek, Inc.
  4.  */
  5. #ifndef LW_BASE_H
  6. #define LW_BASE_H
  7.  
  8. #include <moni.h>
  9. #include <plug.h>
  10.  
  11. typedef struct st_ObjectImport {
  12.     int               result;
  13.     const char       *filename;
  14.     Monitor          *monitor;
  15.     char             *failedBuf;
  16.     int               failedLen;
  17.  
  18.     void             *data;
  19.     void            (*begin) (void *, void *);
  20.     void            (*done) (void *);
  21.     void            (*numPoints) (void *, int total);
  22.     void            (*points) (void *, int numPts,
  23.                    const float *xyz);
  24.     int             (*surfIndex) (void *, const char *name,
  25.                       int *firstTime);
  26.     void            (*polygon) (void *, int numPts, int surf,
  27.                     int flags,
  28.                     const unsigned short *);
  29.     void            (*surfData) (void *, const char *name,
  30.                      int size, void *data);
  31. } ObjectImport;
  32. #define OBJPOLF_FACE      0
  33. #define OBJPOLF_CURVE    (1<<0)
  34. #define OBJPOLF_DETAIL   (1<<1)
  35. #define OBJPOLF_STARTCC  (1<<2)
  36. #define OBJPOLF_ENDCC    (1<<3)
  37. #define OBJSTAT_OK       0
  38. #define OBJSTAT_NOREC    1
  39. #define OBJSTAT_BADFILE  2
  40. #define OBJSTAT_ABORTED  3
  41. #define OBJSTAT_FAILED   99
  42. typedef int             FileReqFunc (const char *hail, char *name,
  43.                      char *path, char *fullName,
  44.                      int buflen);
  45. typedef struct st_MessageFuncs {
  46.     void            (*info)    (const char *, const char *);
  47.     void            (*error)   (const char *, const char *);
  48.     void            (*warning) (const char *, const char *);
  49. } MessageFuncs;
  50.  
  51. #endif
  52.